﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/MasterAdmin.master" AutoEventWireup="true"
    CodeFile="ApprovedCustomer.aspx.cs" Inherits="Admin_ApprovedCustomer" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
    </asp:ScriptManagerProxy>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <h1>
                Approved Customer</h1>
            <table style="width: 100%;">
                <tr>
                    <td>
                        Customer
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlCustomer" runat="server" DataSourceID="SqlDataSource1" DataTextField="UserName"
                            DataValueField="UserId">
                        </asp:DropDownList>
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                            SelectCommand="SELECT * FROM [vw_aspnet_Customers] WHERE ([RoleName] = @RoleName)">
                            <SelectParameters>
                                <asp:Parameter DefaultValue="Customer" Name="RoleName" Type="String" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        IsApproved
                    </td>
                    <td>
                        <asp:CheckBox ID="chkApproved" runat="server" />
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:Button ID="btnApproved" runat="server" OnClick="btnApproved_Click" Text="Approved" />
                        &nbsp;
                        <asp:Button ID="btnListCustomer" runat="server" OnClick="btnListCustomers_Click"
                            Text="List Customers" />
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:Label ID="lblMessage" runat="server"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
